package com.tqjc.system;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

/**
 * 入口启动类
 *
 * @author teli_
 */
@SpringBootApplication(scanBasePackages = { "com.tqjc.system","com.tqjc.business"})
@EnableScheduling //开启定时任务注解
@Slf4j
@MapperScan(basePackages = {"com.tqjc.**.mapper", "com.tqjc.**.dao"})
@EnableWebSocket
public class XiangGangApplication {
    public static void main(String[] args) {
        try {
            log.info("============服务开始启动=============");

            SpringApplication.run(XiangGangApplication.class, args);
            log.info("============服务启动成功=============");
        } catch (Exception e){
            log.error("服务启动异常",e);

        }
    }
}

